package example04;

public class CRectangle {
	int width,height;
	public CRectangle (int a,int b)
	{
		width=a;
		height=b;
	}
	public int area()
	{
		return (width*height);
	}
	public static void main (String[] args)
	{
		CRectangle recta=new CRectangle (3,4);
		CRectangle rectb=new CRectangle (5,6);
		recta=rectb;
		System.out.println ("recta:"+recta.area());
		System.out.println ("rectb:"+rectb.area());
	}
}
